package com.dreamthen.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author zengms
 * @Date 2023-10-30 21:31:26
 **/
@Controller
@RequestMapping(value = "/api")
public class HelloController {

    @RequestMapping(value = "/hello")
    public String hello(String name){

        System.out.println("hello word:"+name);
        return "redirect:/index.jsp";
    }
}
